/**
 * 
 */
package Http;

import java.util.Calendar;
import java.util.Date;

import net.rim.device.api.i18n.DateFormat;
import net.rim.device.api.i18n.SimpleDateFormat;
import net.rim.device.api.util.DateTimeUtilities;

import Main.MyApp;
import Objetos.Producto;
import Objetos.Sesion;

/**
 * @author ARMGARCES
 *
 */
public class Callback implements ResponseCallback{
	private MyApp myapp;
	/**
	 * 
	 * @param _myapp
	 */
	public Callback(MyApp _myapp){
		myapp = _myapp;
	}
	/**
	 * 
	 * @param _data
	 */
	public void callback(Producto _data) {
		// TODO Auto-generated method stub
		
	}
	/**
	 * 
	 * @param _sesion
	 */
	public void inicioSesion(Sesion _sesion) {
		// TODO Auto-generated method stub
		myapp.iniciarSesion(_sesion);
	}	
	
	/**
	 * 
	 * @param _sesion
	 */
	public void restaurarSesion(Sesion _sesion) {
		// TODO Auto-generated method stub
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		
		
		
		myapp.restaurarSesion(_sesion);
	}	
}
